﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppFlat.Domain.Models
{
    /// <summary>
    /// 类别
    /// </summary>
    [Serializable]
    public class Category
    {
        [Key]
        public int Id { get; set; }
        [StringLength(20)]
        [Required]
        public string Name { get; set; }


        public int ParentId { get; set; }

        [Newtonsoft.Json.JsonIgnore]
        public virtual ICollection<AppInfo> AppInfos { get; set; }
    }
}
